package cn.bonoon.kernel.expression.resolver;

import cn.bonoon.kernel.expression.StandardExpressionParser;
import cn.bonoon.kernel.expression.results.UserExpressionValue;

public class UserExpressionResolver extends BaseExpressionResolver{
	
	UserExpressionResolver(){
		super("USER");
	}
	
	@Override
	protected void _internalResolver(StandardExpressionParser seParser, String[] commands) throws Exception {
		String field = commands[1], args = null;
		if(commands.length > 2){
			args = commands[2];
		}
		seParser.value(new UserExpressionValue(seParser, field, args));
		super._internalResolver(seParser, commands);
	}
}
